/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.dao.ShippingMethodDao;
import com.hboxs.asl.entity.Merchant;
import com.hboxs.asl.entity.ShippingMethod;
import com.hboxs.asl.service.ShippingMethodService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Service - 配送方式
 */
@Service("shippingMethodServiceImpl")
public class ShippingMethodServiceImpl extends BaseServiceImpl<ShippingMethod, Long> implements ShippingMethodService {

    @Resource(name = "shippingMethodDaoImpl")
    private ShippingMethodDao shippingMethodDao;

    @Resource(name = "shippingMethodDaoImpl")
    public void setBaseDao(ShippingMethodDao shippingMethodDao) {
        super.setBaseDao(shippingMethodDao);
    }

    @Override
    public ShippingMethod findDefault() {
        return shippingMethodDao.findDefault();
    }

    @Override
    public ShippingMethod findDefault(Merchant merchant) {
        return shippingMethodDao.findDefault(merchant);
    }


}